using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CPlatePrintSys.Domain.Models
{
    public class MotherShip
    {
        public int Id { get; set; }

        [Required]
        [StringLength(20)]
        [RegularExpression("^[A-Z0-9]+$", ErrorMessage = "船号只能为大写字母和数字")]
        public string ShipNo { get; set; }

        public virtual ICollection<StreamShip> StreamShips { get; set; }
    }
} 